<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>新的全局常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="migration70.classes.html">« 新的类和接口</a></li>
      <li style="float: right;"><a href="migration70.sapi-changes.html">SAPI 模块的变化 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="migration70.html">从 PHP 5.6.x 移植到 PHP 7.0.x</a></li>
    <li>新的全局常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="migration70.constants" class="sect1">
 <h2 class="title">新的全局常量</h2>

 <div class="sect2" id="migration70.constants.core">
  <h3 class="title"><a href="reserved.constants.html" class="link">内核预定义常量</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>PHP_INT_MIN</code></strong>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.constants.gd">
  <h3 class="title"><a href="book.image.html" class="link">GD</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>IMG_WEBP</code></strong> (自 PHP 7.0.10 起)
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.constants.json">
  <h3 class="title"><a href="book.json.html" class="link">JSON</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_ERROR_INVALID_PROPERTY_NAME</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>JSON_ERROR_UTF16</code></strong>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.constants.libxml">
  <h3 class="title"><a href="book.libxml.html" class="link">LibXML</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>LIBXML_BIGLINES</code></strong>
    </span>
   </li>
  </ul>
 </div>
 
 <div class="sect2" id="migration70.constants.pcre">
  <h3 class="title"><a href="book.pcre.html" class="link">PCRE</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>PREG_JIT_STACKLIMIT_ERROR</code></strong>
    </span>
   </li>
  </ul>
 </div>

 <div class="sect2" id="migration70.constants.posix">
  <h3 class="title"><a href="book.posix.html" class="link">POSIX</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_AS</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_CORE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_CPU</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_DATA</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_FSIZE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_LOCKS</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_MEMLOCK</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_MSGQUEUE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_NICE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_NOFILE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_NPROC</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_RSS</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_RTPRIO</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_RTTIME</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_SIGPENDING</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_STACK</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>POSIX_RLIMIT_INFINITY</code></strong>
    </span>
   </li>
  </ul>
 </div>
 
 <div class="sect2" id="migration70.constants.zlib">
  <h3 class="title"><a href="book.zlib.html" class="link">Zlib</a></h3>

  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_ENCODING_RAW</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_ENCODING_DEFLATE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_ENCODING_GZIP</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_FILTERED</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_HUFFMAN_ONLY</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_FIXED</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_RLE</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_DEFAULT_STRATEGY</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_BLOCK</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_FINISH</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_FULL_FLUSH</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_NO_FLUSH</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_PARTIAL_FLUSH</code></strong>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <strong><code>ZLIB_SYNC_FLUSH</code></strong>
    </span>
   </li>
  </ul>
 </div>
</div></div></div></body></html>